﻿@model BackEnd.Models.MetaHeaderModel
@{
    ViewBag.Title = "Create metaheader";
}

<h2>Create meta header</h2>
    @using (Html.BeginForm()) { 
        @Html.ValidationSummary(true, "MetaHeader creation was unsuccessful. Please correct the errors and try again.", new { @class="error_box" }) 
                        
        if(ViewData["ErrorMessage"]!=null){
         @Html.Label(ViewData["ErrorMessage"].ToString())
         }
        <div>                            
                <table>
                    <tr>

                        <td>
                            @Html.LabelFor(m => m.Url) 
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.Url) 
                            @Html.ValidationMessageFor(m => m.Url)
                        </td>
                    </tr>
                    <tr>

                        <td>
                            @Html.LabelFor(m => m.Title)
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.Title) 
                            @Html.ValidationMessageFor(m => m.Title)
                        </td>
                    </tr>
                    <tr>

                       <td>
                            @Html.LabelFor(m => m.KeyWord)
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.KeyWord) 
                            @Html.ValidationMessageFor(m => m.KeyWord)
                        </td>
                    </tr>
                    <tr>

                        <td>
                            @Html.LabelFor(m => m.Description)
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.Description) 
                            @Html.ValidationMessageFor(m => m.Description)
                        </td>
                    </tr>
                    <tr><td></td><td><img class="NFButtonLeft NFh" src="/Content/Img/0.png"><input id="submit" class="NFButton NFh" type="submit" value="Create" name="submit"><img class="NFButtonRight NFh" src="/Content/Img/0.png">@Html.ActionLink("Back","Index")</td></tr>
                </table>
                
                
               
                
            
        </div>
    } 
